﻿
namespace Titan.WinFormSys.Entity
{
    /// <summary>
    /// 权限实体类
    /// </summary>
    public class RolePowersEntity
    {
        /// <summary>
        /// 默认构造方法
        /// </summary>
        /// <param name="strId">系统编号</param>
        /// <param name="strName">菜单名称</param>
        /// <param name="strImageUrl">图片地址</param>
        /// <param name="strNavigateUrl">完整名称</param>
        /// <param name="iSortIndex">序号</param>
        /// <param name="strParentId">父ID</param>
        public RolePowersEntity(string strId,string strName,string strImageUrl,string strNavigateUrl,int iSortIndex,string strParentId, string strKeyCode)
        {
            Id = strId;
            Name = strName;
            ImageUrl = strImageUrl;
            NavigateUrl = strNavigateUrl;
            SortIndex = iSortIndex;
            ParentId = strParentId;
            KeyCode = strKeyCode;
        }

        /// <summary>
        /// 菜单ID
        /// </summary>
        public string Id { get; private set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string Name { get; private set; }
        /// <summary>
        /// 菜单图片地址
        /// </summary>
        public string ImageUrl { get; private set; }
        /// <summary>
        /// web框架中的链接地址 cs框架中窗体的完整名称如 Titan.CsFrame.FrmLogin
        /// </summary>
        public string NavigateUrl { get; private set; }
        /// <summary>
        /// 显示顺序
        /// </summary>
        public int SortIndex { get; private set; }
        /// <summary>
        /// 父ID
        /// </summary>
        public string ParentId { get; private set; }
        /// <summary>
        /// 按钮code
        /// </summary>
        public string KeyCode{ get; private set; }


    }
}
